#ifndef __WINDSENSOR_H
#define __WINDSENSOR_H

#include "Common.h"

class WindSensor{
private:
    int32_t _direction;
    int32_t _directionRaw;

    int32_t _lastDirection;
    bool _directionChanged;

public:
    WindSensor();

    void measureWindDirection();

    int32_t getWindDirection();
    int32_t getWindDirectionRaw();

    bool directionChanged();
};

#endif // __WINDSENSOR_H
